<template>
  <div class="placeholder-page">
    <h2>{{ title }}</h2>
    <p>{{ message }}</p>
  </div>
</template>

<script setup lang="ts">
// 接收标题和消息作为属性
defineProps<{
  title: string;
  message: string;
}>();
</script>

<style scoped>
.placeholder-page {
  padding: 40px;
  text-align: center;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.placeholder-page h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 24px;
}

.placeholder-page p {
  color: #666;
  font-size: 16px;
}
</style>